/* 数据类型 */

#include <stdio.h>
#define EXIT 10

void main()
{
	long int num;

    printf("Type test.\n");

	do{
		printf("\nPlease enter a number, -1 exit:");
		scanf("%lx", &num);
	
		printf("char size=%d: %c\n", sizeof(char), num);
		printf("signed int size=%d: %d\n", sizeof(int), num);
		printf("unsigned int size=%d: %u\n", sizeof(int), num);
		printf("signed long int size=%d: %ld\n", sizeof(long), num);
		printf("unsigned long int size=%d: %lu\n", sizeof(long), num);
	}while(num != EXIT);
}
